
    <div class="blog-post-area">
        <h2 class="title text-center">Latest Promotion From Pet Shop</h2>
        <?php foreach ($promotions as $promotion){ ?>
        <div class="single-blog-post">
            <h3><?php echo $promotion['promotion_name'] ?></h3>
            <div class="post-meta">
                <ul>
                    <li><i class="fa fa-calendar"> Start Date</i> <?php echo $promotion['start_date'] ?></li>
                    <li><i class="fa fa-calendar"> End Date</i> <?php echo $promotion['end_date'] ?></li>
                </ul>
								<span>
										<i class="fa fa-star"></i>
										<i class="fa fa-star"></i>
										<i class="fa fa-star"></i>
										<i class="fa fa-star"></i>
										<i class="fa fa-star-half-o"></i>
								</span>
            </div>
            <a href="">
                <img src="<?php
                if (strpos($promotion['url_image'], '//'))
                    echo $promotion['url_image'];
                else echo base_url().'public/images/'.$promotion['url_image'];
                ?>" alt="">
            </a>
            <p><?php if(strlen($promotion['content'])>= 400) { echo substr($promotion['content'], 0, 400). "  ..."; } ?></p>
            <a  class="btn btn-primary" href="<?php echo base_url() ;?>frontend/promotion/viewDetail/<?php echo $promotion['promotion_id'] ?>">Read More</a>
        </div>
        <?php } ?>
        <div class="pagination-area">
            <ul class="pagination">
                <li><a href="" class="active">1</a></li>
                <li><a href="">2</a></li>
                <li><a href="">3</a></li>
                <li><a href=""><i class="fa fa-angle-double-right"></i></a></li>
            </ul>
        </div>
    </div>